package cn.tedu;

import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

//@Component
public class HuaweiPhone implements Phone{


    private static String name;
    private  HuaweiPhone(String name){
        this.name=name;
        System.out.println("HuaweiPhone构造方法被调用了");
    }
//    @Override
    public static String getName1() {
        return name+"的华为手机";
    }

    public  String getName() {
        return name+"的华为手机";
    }


}
